package com.zimmor;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author:zimmor
 * @Date: 2021/3/11 9:18
 * @Description
 * @version: 1.0.0
 */
@Component
@RabbitListener(queues = "itcast")
public class Customer1 {
    @RabbitHandler
    public void getMessage(String message) {
        System.out.println("itcast"+message+"**********************");
    }
}
